﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Ocean.His.MedicalInsurance
{
    /// <summary>
    /// 1101
    /// 人员基本信息获取
    /// </summary>
    [DataContract]
    public class SI1101Data
    {
        /// <summary>
        /// 就诊凭证类型
        /// </summary>
        [DataMember(Name = "mdtrt_cert_type")]
        public string MdtrtCertType { get; set; }

        /// <summary>
        /// 就诊凭证编号
        /// </summary>
        [DataMember(Name = "mdtrt_cert_no")]
        public string MdtrtCertNo { get; set; }

        /// <summary>
        /// 卡识别码
        /// </summary>
        [DataMember(Name = "card_sn")]
        public string CardSn { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [DataMember(Name = "begntime")]
        public string Begntime { get; set; }

        /// <summary>
        /// 人员证件类型
        /// </summary>
        [DataMember(Name = "psn_cert_type")]
        public string PsnCertType { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        [DataMember(Name = "certno")]
        public string Certno { get; set; }

        /// <summary>
        /// 人员姓名
        /// </summary>
        [DataMember(Name = "psn_name")]
        public string PsnName { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [DataContract]
    public class SI1101InputModel
    {
        [DataMember(Name = "data")]
        public SI1101Data SI1101Data { get; set; }
    }

    /// <summary>
    /// 1101 人员基本信息获取
    /// </summary>
    [DataContract]
    public class SI1101RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SI1101InputModel Input { get; set; }

        public SI1101RequestModel(MedicalInsuranceOption medicalInsuranceOption, 
            SI1101Data sI1101Data) : base(medicalInsuranceOption)
        {
            Infno = "1101";
            Input = new SI1101InputModel();
            Input.SI1101Data = sI1101Data;
        }
    }
}
